package com.platform.admin.contant;


import com.platform.common.entity.ApiResponseCode;

public interface BusinessExConstant {

    ApiResponseCode SUCCESS = new ApiResponseCode("000000", "成功");
    ApiResponseCode SYS_ERROR = new ApiResponseCode("100000", "系统异常");
    ApiResponseCode GET_USER_ERROR = new ApiResponseCode("100001", "获取用户失败");
    ApiResponseCode ACCOUNT_LOCKED = new ApiResponseCode("100002", "账号已被锁定,请联系管理员");
    ApiResponseCode TOKEN_EXPIRE = new ApiResponseCode("100003", "token失效，请重新登录");
    ApiResponseCode FEIGN_ERROR = new ApiResponseCode("100004", "服务开小差了,请联系管理员");
    ApiResponseCode BMS_TOKEN_INVALID = new ApiResponseCode("B-000003", "token无效");
    ApiResponseCode BMS_TOKEN_EXPIRED = new ApiResponseCode("B-000004", "token已过期");
    ApiResponseCode ENUM_ERROR = new ApiResponseCode("999997", "枚举转换异常");
    ApiResponseCode PARAM_ERROR = new ApiResponseCode("980001", "参数异常");
    ApiResponseCode ORDER_CANCEL = new ApiResponseCode("980002", "订单已经取消");
    ApiResponseCode ORDER_OUT = new ApiResponseCode("980003", "订单已经外发");
    ApiResponseCode THIRD_SERVER_ERROR = new ApiResponseCode("990001", "第三方服务异常");
    ApiResponseCode GDB_SERVER_ERROR = new ApiResponseCode("999998", "跟单宝服务异常");
    ApiResponseCode DEVICE_ERROR_STATUS = new ApiResponseCode("990003", "机台处于异常状态！");
    ApiResponseCode PUNCH_PASS_ERROR = new ApiResponseCode("990004", "打卡密码错误");
    ApiResponseCode SKIP_THIS = new ApiResponseCode("990006", "该订单状态非待排产，请跳过");
    ApiResponseCode ING_CANNOT_TRANSFORM = new ApiResponseCode("990008", "该订单正在生产中!");
    ApiResponseCode ERR_FORBID_TRANSFORM = new ApiResponseCode("990009", "该订单异常中止中!");

    ApiResponseCode GDB_DATA_ERROR = new ApiResponseCode("910007", "跟单宝数据异常!");
    ApiResponseCode FORBID_OPERATE = new ApiResponseCode("910006", "强制排产的单禁止操作!");
    ApiResponseCode BW_NOT_DATA = new ApiResponseCode("910008", "看板未查询到数据!");
    ApiResponseCode NOT_OUT_ORDER = new ApiResponseCode("910009", "非外部订单，大版id必传!");
    ApiResponseCode OUT_ORDER = new ApiResponseCode("910010", "外部订单，加工商id必传!");
    ApiResponseCode EXAMINE_VERIFICATION_CODE_ERROR = new ApiResponseCode("910011", "短信校验失败");
    ApiResponseCode EXAMINE_VERIFICATION_CODE_ERR_MISMATCHING = new ApiResponseCode("910012", "短信验证码不匹配");
    ApiResponseCode SEND_NOTE_FREQUENTLY = new ApiResponseCode("910013", "短信发送频繁");
    ApiResponseCode SEND_NOTE_ERROR = new ApiResponseCode("910014", "发送短信失败");
    ApiResponseCode SEND_NOTE_ERROR_NOT_FOUND_TEMPLATE = new ApiResponseCode("910015", "发送短信失败,未找到模板");
    ApiResponseCode MOBILE_IN_USE = new ApiResponseCode("910016", "手机号已被使用");
    ApiResponseCode CRAETE_TOKEN_ERROR = new ApiResponseCode("910017", "token创建失败");
    ApiResponseCode MOBILE_UNREGISTERED = new ApiResponseCode("910018", "手机号未注册");
    ApiResponseCode SCHEDULED_FAILED = new ApiResponseCode("910019", "没有找到合适的机型排产失败");
    ApiResponseCode ORDER_NOT_FOUND = new ApiResponseCode("910020", "订单未找到");
    ApiResponseCode ORDER_NOT_FOUND_M = new ApiResponseCode("910021", "抱歉，没有搜索到您想要的订单。");
    ApiResponseCode ORDER_ALREADY_CHOOSE = new ApiResponseCode("910022", "订单已被其他机长选择!");
    ApiResponseCode ORDER_ALREADY_ING = new ApiResponseCode("910023", "订单已被其他机长开始生产!");
    ApiResponseCode FINISH_CURRENT_FIRST = new ApiResponseCode("910024", "请先完成当前订单的生产！");
    ApiResponseCode UNNECESSARY_TRANSFORM = new ApiResponseCode("910025", "该工序无需转单/调整排产");
    ApiResponseCode DIE_CUT_VALID = new ApiResponseCode("910027", "此订单击凸/击凹未完成，模切无法完成生产!");
    ApiResponseCode BW_RECORD_NULL = new ApiResponseCode("910028", "根据id:{}未查出大版数据!");
    ApiResponseCode ATTRIBUTE_ID_ERROR = new ApiResponseCode("910029", "工艺id：{}错误！");
    ApiResponseCode PO_MUST = new ApiResponseCode("910030", "PO号必传！");
    ApiResponseCode BW_GROUPID_NULL = new ApiResponseCode("910031", "根据大版id：{} 未查到数据/大版订单已经取消！");
    ApiResponseCode BW_ON_FINISH = new ApiResponseCode("910032", "该订单已经生产完成");
    ApiResponseCode BW_ON_OUTGOING = new ApiResponseCode("910033", "该订单已经外发");
    ApiResponseCode BW_PO_SNS_VALID = new ApiResponseCode("910034", "PO工序PO号必须唯一");
    ApiResponseCode EXCEPTION_MSG_SAVE_ERROR = new ApiResponseCode("910035", "异常提示信息保存失败");
    ApiResponseCode PO_INFO_MUST = new ApiResponseCode("910036", "po信息必传！");
    ApiResponseCode PO_SN_MUST = new ApiResponseCode("910037", "po号必传！");
    ApiResponseCode BW_ON_OUT_BACK = new ApiResponseCode("910038", "该订单外发已回,禁止操作此项！");
    ApiResponseCode SUPPLIER_DIS = new ApiResponseCode("910039", "该加工商已经禁用，请先完成生产中订单！");
    ApiResponseCode DEVICE_DIS = new ApiResponseCode("910039", "该设备禁用，请先完成生产中订单！");
    ApiResponseCode SUPPLIER_DIS_OUT = new ApiResponseCode("910040", "该加工商已经禁用！");
    ApiResponseCode DEVICE_DIS_OUT = new ApiResponseCode("910040", "该设备已经禁用！");
    ApiResponseCode SUPPLIER_CANNOT_USE = new ApiResponseCode("910041", "加工商未分配该工艺！");

    ApiResponseCode MERGE_ATTRIBUTE = new ApiResponseCode("920021", "合并工艺，实际的上道工艺来源必传！");
    ApiResponseCode ON_COUNT_NOT_NULL = new ApiResponseCode("920023", "下机数不能为空！");
    ApiResponseCode PREV_ATTR_VALID = new ApiResponseCode("910024", "上工序未完成,本工序不能点击完成,请先完成上工序");
    ApiResponseCode DEVICE_NOT_MATCH = new ApiResponseCode("920025", "设备不匹配!");
    ApiResponseCode LOSS_COUNT_NOT_NULL = new ApiResponseCode("920026", "较版纸数量不能为空!");
    ApiResponseCode EX_SOURCE_NOT_NULL = new ApiResponseCode("920027", "异常来源必传!");
    ApiResponseCode SAVE_EXCEPTION_HANDLE_ERROR = new ApiResponseCode("920028", "异常处理失败!");
    ApiResponseCode UPDATE_EXCEPTION_HANDLE_ERROR = new ApiResponseCode("920029", "更新异常处理失败!");
    ApiResponseCode HANDEL_NOT_SUPPORT = new ApiResponseCode("920030", "处理结果不支持该类型！");
    ApiResponseCode ERR_FINISH = new ApiResponseCode("920031", "该异常已经处理完成！");
    ApiResponseCode ALREADY_ERR_STATUS = new ApiResponseCode("920032", "该工序已经是异常中止中！");
    ApiResponseCode NEAR_FINISH_TIME_NOT_NULL = new ApiResponseCode("920035", "上道工序完成时间不能为空");
    ApiResponseCode START_FINISH_VALID = new ApiResponseCode("910036", "订单已被其他机长开始生产");
    ApiResponseCode HANDEL_RESULT_NEED = new ApiResponseCode("920037", "处理结果必传");


    ApiResponseCode TARGET_BATCH_SAVE_ERROR = new ApiResponseCode("930001", "今日目标批量添加失败");
    ApiResponseCode TARGET_SINGLE_SAVE_ERROR = new ApiResponseCode("930002", "今日目标单个添加失败");
    ApiResponseCode NOT_GET_SAVE_DATA = new ApiResponseCode("930003", "今日目标添加失败，请核对后在再添加");
    ApiResponseCode TARGET_ATTRIBUTEID_MUST_NULL = new ApiResponseCode("930004", "今日目标工序id必传");
    /**
     * 初始化接口返回给跟单宝的重复推送code
     **/
    ApiResponseCode GROUP_ORDER_ALREADY_EXIST = new ApiResponseCode("989991", "该数据在机长看板已存在");
    /**
     * 版本号错误code
     */
    ApiResponseCode VERSION_ERROR = new ApiResponseCode("966666", "版本号错误！");
    /**
     * 前端不展示错误信息code
     */

    ApiResponseCode NOT_LOGIN_ERROR = new ApiResponseCode("970001", "用户未登录");
    ApiResponseCode VERIFY_ERROR = new ApiResponseCode("970002", "验证失败");
    ApiResponseCode LOGIN_VERIFY_ERROR = new ApiResponseCode("970003", "用户名或密码错误");
    ApiResponseCode UPDATE_PWD_ERROR = new ApiResponseCode("970004", "修改密码错误");
    ApiResponseCode TOKEN_INVALID_ERROR = new ApiResponseCode("970005", "token无效");

    /**
     * 搜索相关异常 统一异常码，方便前端判断
     */
    ApiResponseCode SEARCH_OUT_ING = new ApiResponseCode(ORDER_NOT_FOUND.getCode(), "符合搜索条件的订单:{}，外发中。");
    ApiResponseCode SEARCH_SKIP = new ApiResponseCode(ORDER_NOT_FOUND.getCode(), "符合搜索条件的订单:{}，已经跳过此工序。");
    ApiResponseCode PACK_ING = new ApiResponseCode(ORDER_NOT_FOUND.getCode(), "符合搜索条件的订单:{}，打包中。");
    ApiResponseCode NOT_PACK = new ApiResponseCode(ORDER_NOT_FOUND.getCode(), "符合搜索条件的订单:{}，未打包。");
    ApiResponseCode FINISH_PACK = new ApiResponseCode(ORDER_NOT_FOUND.getCode(), "符合搜索条件的订单:{}，已打包。");


    /**
     * ---------------------------------------------------------此为后台管理相关的异常-----------------------------------------------------------------------------
     **/

    ApiResponseCode MANAGER_IN_PRODUCTION_CAN_NOT_REPORT_ERROR = new ApiResponseCode("970006", "生产中的工序不能进行异常报备");
    ApiResponseCode EARLY_WARNING_ALREADY_EXIST_ERROR = new ApiResponseCode("970007", "\"符合查询的订单\"已添加到高延误风险列表中，无需重复添加。");
    ApiResponseCode DATA_NOT_FOUND = new ApiResponseCode("970008", "未查询到数据！");
    ApiResponseCode CANNOT_OUT = new ApiResponseCode("970009", "未到该工序！");
    ApiResponseCode ALREADY_OUT = new ApiResponseCode("970010", "该工序已经外发！");
    ApiResponseCode PAINTING_FORBID_OUT = new ApiResponseCode("970011", "印刷工序禁止外发！");
    ApiResponseCode NOT_OUT_STATUS = new ApiResponseCode("970012", "非外发状态！");
    ApiResponseCode ORDER_IS_DEL = new ApiResponseCode("970013", "订单已被删除！");

    ApiResponseCode PACKAGEINFO_SAVE_ERROR = new ApiResponseCode("920001", "装箱信息保存失败");
    ApiResponseCode PACKAGEINFO_UPDATE_ERROR = new ApiResponseCode("920002", "装箱信息更新失败");
    ApiResponseCode PACKAGEINFO_NULL_ERROR = new ApiResponseCode("920003", "请先编辑订单信息");
    ApiResponseCode PACKAGEBOX_LIMIT_ERROR = new ApiResponseCode("920004", "箱数最少为{}箱");
    ApiResponseCode PACKAGE_TASK_ERROR = new ApiResponseCode("920005", "任务已被领取");


    ApiResponseCode QUALITY_DINGTALKNOTIFY_ERROR = new ApiResponseCode("930001", "通知跟单员失败");
    ApiResponseCode QUALITY_RESULT_SAVE_ERROR = new ApiResponseCode("930002", "保存质检结果失败");
    ApiResponseCode PO_FREEZE = new ApiResponseCode("970013", "订单变更中，暂停生产及外发");
}
